package com.beaven.model.utils;

/**
 * author : Beaven
 * date : 2017/6/4
 * time : 16:47
 */

public class DataUtil {
  public static int getRandomNumber(int start, int end) {
    return (int) (Math.random() * (end - start + 1)) + start;
  }

  // Object比较
  public static boolean equals(Object a, Object b) {
    return (a == b) || (a != null && a.equals(b));
  }
}
